import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by 86135 on 2020/2/19.
 * java、python、IT、java、全栈、java
 */
public class Test05 {
    public static void main(String[] args) {

        ArrayList<String> list = new ArrayList<>();
        list.add("java");
        list.add("python");
        list.add("IT");
        list.add("java");
        list.add("全栈");
        list.add("java");

        Set<String> set = new HashSet<>();
        for (int i = 0; i < list.size(); i++) {
            set.add(list.get(i));
        }

        for (String s : set) {
            System.out.println(s);
        }
    }
}
